﻿@model VehicleManagement.Models.CarParts

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(function () {
        $.post("/Driver/GetDriverNameList", {},
            function (data) {
                $("#DriverName").empty();
                $.each(data, function () {
                    $("#DriverName").append('<option>' + this + '</option>');
                });
            });
        $.post("/CarInfo/GetCarNumberList", {},
            function (data) {
                $("#CarNumber").empty();
                $.each(data, function () {
                    $("#CarNumber").append('<option>' + this + '</option>');
                });
            });
    });
    </script>

<div class="mas">
<div class="toptitle">
   司机负责人管理平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewDriverManager")
<div class="rightshow">

@using (Html.BeginForm()) 
{
    @Html.ValidationSummary(true)
       <fieldset>
        <legend></legend>
       <div class="box">
        <div class="box-detail-nopic-create" >     
                <div class="span-title"><span>汽车构件信息录入</span></div>
          <div class ="box-detail3 detail1-no2">
          <div class ="box-detail3-wrap detail1-no2">
             <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.CarNumber):</span>
                @Html.DropDownListFor(model => model.CarNumber, new SelectList(new[] {"车牌号"}, "车牌号"))
                @Html.ValidationMessageFor(model => model.CarNumber)
            </div>
           <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.DriverName):</span>
               @Html.DropDownListFor(model => model.DriverName, new SelectList(new[] { "司机姓名" }, "司机姓名"))
               @Html.ValidationMessageFor(model => model.DriverName)
            </div>
             <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Part):</span>
                @Html.EditorFor(model => model.Part)@Html.ValidationMessageFor(model => model.Part)
            </div>
             <div class="box-detail1-linetype1">
             <span class="labeldisplay">@Html.LabelFor(model => model.Price):</span>
                @Html.EditorFor(model => model.Price)@Html.ValidationMessageFor(model => model.Price)
            </div>  
             <div class="box-detail1-linetype1">
             <span class="labeldisplay">@Html.LabelFor(model => model.Num):</span>
                @Html.EditorFor(model => model.Num)@Html.ValidationMessageFor(model => model.Num)
            </div>   
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Cost):</span>
                @Html.EditorFor(model => model.Cost)@Html.ValidationMessageFor(model => model.Cost)           
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Date):</span>
                @Html.EditorFor(model => model.Date)@Html.ValidationMessageFor(model => model.Date)           
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.TickID):</span>
                @Html.EditorFor(model => model.TickID)@Html.ValidationMessageFor(model => model.TickID)
            </div>            
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.PartCompany):</span>
                @Html.EditorFor(model => model.PartCompany)@Html.ValidationMessageFor(model => model.PartCompany)
            </div>                       
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Approval):</span>
                @Html.EditorFor(model => model.Approval)@Html.ValidationMessageFor(model => model.Approval)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Remark):</span>
                @Html.TextAreaFor(model => model.Remark)
            </div>
           

           </div>
           </div>
           <div class="button-wrap button-wrap-table">
                <input class="button-add" type="submit" value="添 加" />
                <input class="button-back" type="button" value="取 消" />  
           </div> 
        
    </div>
    </div>

    </fieldset>
}

</div>

<div class="clear"></div>
	
</div>

